package com.yequan.work;

import java.math.*;

/**
 * @author yequan
 * @date 2021/02/01 11:16
 **/
public class PriceDemo {

    public static void main(String[] args) {
        int totalPrice = 56710;
        float clientSuggestFee = BigDecimal.valueOf(567.1 * 100).intValue();
        if (totalPrice > clientSuggestFee) {
            System.out.println("error");
        } else {
            System.out.println("success");
        }
    }

}
